﻿<UserControl x:Class="External.Controls.Controls.HallControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Controls="clr-namespace:External.Controls.Controls" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        
        <CheckBox Content="Режим редактирования" Margin="10" HorizontalAlignment="Right" 
                  IsChecked="False" Name="checkBox"/>

        <ScrollViewer  Grid.Row="1" >
            <Controls:HallCanvas x:Name="Canvas" x:FieldModifier="public" IsEdit="{Binding Path=IsChecked, ElementName=checkBox}" />

        </ScrollViewer>
      
    </Grid>
</UserControl>
